package com.ibeetl.cms.web.query2;

import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.Tool;
import com.ibeetl.admin.core.web.query.PageParam;
import org.apache.commons.lang3.StringUtils;

import java.util.Date;

/**
 *ComprehensiveQuery查询
 */
public class ComprehensiveQueryQuery2 extends PageParam {
    @Query(name = "姓名", display = true)
    private String name;
    @Query(name = "工作企业", display = true)
    private String currentWorkingEnterprise;
    @Query(name="业务类型",  type= Query.TYPE_DICT, dict="buinessType", display = true)
    private String declareType;
    @Query(name = "业务状态", display = true,type=Query.TYPE_DICT,dict="businessState4",group="businessState4")
    private String businessState;
    @Query(name = "审核意见", display = false)
    private String handlingSuggestion;
    @Query(name = "申报日期", type= Query.TYPE_DATE_BETWEEN, display = true)
    private String declareTime;
    private Date declareTimeMin;
    private Date declareTimeMax;

    @Query(name = "统一社会信用代码", display = false)
    private String organizationCode;

    @Query(name = "证件号码", display = true)
    private String identificationNumber;

    private String processResult ;

    public String getProcessResult() {
        return processResult;
    }

    public void setProcessResult(String processResult) {
        this.processResult = processResult;
    }

    private String UserId;

    private String companyId;

    private String socialCreditCode;


    public String getName(){
        return  name;
    }
    public void setName(String name ){
        this.name = name;
    }
    public String getCurrentWorkingEnterprise(){
        return  currentWorkingEnterprise;
    }
    public void setCurrentWorkingEnterprise(String currentWorkingEnterprise ){
        this.currentWorkingEnterprise = currentWorkingEnterprise;
    }
    public String getDeclareType(){
        return  declareType;
    }
    public void setDeclareType(String declareType ){
        this.declareType = declareType;
    }
    public String getBusinessState(){
        return  businessState;
    }
    public void setBusinessState(String businessState ){
        this.businessState = businessState;
    }
    public String getHandlingSuggestion(){
        return  handlingSuggestion;
    }
    public void setHandlingSuggestion(String handlingSuggestion ){
        this.handlingSuggestion = handlingSuggestion;
    }
    public String getDeclareTime(){
        return  declareTime;
    }
    public void setDeclareTime(String declareTime ){
        this.declareTime = declareTime;
        if(StringUtils.isEmpty(declareTime)) {
            return ;
        }
        Date[] ds = Tool.parseDataRange(declareTime);
        this.declareTimeMin=ds[0];
        this.declareTimeMax =ds[1];
        this.declareTime = declareTime;
    }

    public Date getDeclareTimeMin() {
        return declareTimeMin;
    }

    public void setDeclareTimeMin(Date declareTimeMin) {
        this.declareTimeMin = declareTimeMin;
    }

    public Date getDeclareTimeMax() {
        return declareTimeMax;
    }

    public void setDeclareTimeMax(Date declareTimeMax) {
        this.declareTimeMax = declareTimeMax;
    }

    public String getOrganizationCode() {
        return organizationCode;
    }

    public void setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
    }

    public String getIdentificationNumber() {
        return identificationNumber;
    }

    public void setIdentificationNumber(String identificationNumber) {
        this.identificationNumber = identificationNumber;
    }

    public String getUserId() {
        return UserId;
    }

    public void setUserId(String userId) {
        UserId = userId;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getSocialCreditCode() {
        return socialCreditCode;
    }

    public void setSocialCreditCode(String socialCreditCode) {
        this.socialCreditCode = socialCreditCode;
    }
}
